<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/doorstore_style.css" />
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery-1.4.4.min.js" ></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/table.js" ></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/cn-maszy-allen-time-1.0.js" ></script>
<title>夏和餐饮要货管理系统</title>
</head>
<body>
<div id="top">
  <div class="logo"><img src="<%=request.getContextPath()%>/images/bg/doorstore/logo.gif" /></div>
</div>
<div id="main">
  <div class="top">
    <table style="width:100%;">
      <tr>
        <td style="width:20%">门店：${item.doorStore_Name}</td>
        <td style="width:10%">填表人：
          ${item.goodPlan_User }</td>
          <td style="width:20%">单据类型：${item.goodPlan_Type==1?'原材料供应单':item.goodPlan_Type==2?'下午补货单':item.goodPlan_Type==3?'明日补货单':item.goodPlan_Type==4?'早点要货单':item.goodPlan_Type==5?'早点补货单':''}
          </td>
        <td style="width:30%">时间：${item.goodPlan_date}</td>
      </tr>
    </table>
  </div>
  
    <div class="text">
      <!--表格1-->
     
      <c:if test="${ item.goodPlan_Type!='4'}">
      <c:forEach items="${item.goodPlanList}" var="sitem" varStatus="var">
      <table id="t1">
      <tr class="">
	      	<th colspan="6">
	      		<h1>${sitem.dept_Name }</h1>
	      	</th>
	      	</tr>
        <tr class="herd">
          <th style="width:10%;">序号</th>
          <th style="width:40%;">名称</th>
          <th style="width:10%;">数量</th>
           <th style="width:10%;">单位</th>
          <th style="width:30%;">说明</th>
        </tr>
        <c:forEach items="${sitem.productList}" var="pitem" varStatus="var">
        <tr>
          <td>${var.count }</td>
          <td>${pitem.product_Name}</td>
          <td>${pitem.product_Quantity}</td>
            <td>${pitem.product_Unit}</td>
           <td>${pitem.product_Remark}</td>
        </tr>
        </c:forEach>
      </table>
   	</c:forEach>
   	</c:if>
   	 <c:if test="${ item.goodPlan_Type=='4'}">
   	  <table id="t1">
        <tr class="herd">
         
          <th style="width:20%;">名称</th>
           <th style="width:30%;">时间-趟数</th>
          <th style="width:20%;">数量</th>
          <th style="width:20%;">规格</th>
           <th style="width:10%;">单位</th>
         
        </tr>
   	 <c:forEach items="${item.goodPlanList}" var="sitem" varStatus="var">
        <c:forEach items="${sitem.productList}" var="pitem" varStatus="var">
        <tr>
          <td>${pitem.product_Name}</td>
            <td>${pitem.product_Remark}第${pitem.product_Dept_Name}趟</td>
          
          <td>${pitem.product_Quantity}</td>
          <td>${pitem.product_Specification}</td>
            <td>${pitem.product_Unit}</td>
         
        </tr>
        </c:forEach>
     
   	</c:forEach>
   	 </table>
   	 </c:if>
    </div>
    <div class="foot">   		
    </div>
</div>
<div id="footer">技术支持 - <a href="http://maszy.cn">马鞍山市志业软件科技有限公司</a>
</div>
</body>
</html>
